# -*- coding: UTF-8 -*- 
from common.caseOperation import caseOperation
from Tkinter import *
#两个caseSelect只是UI不同
class caseSelect():
    
    def create_window(self, master):
                       
        self.title=Label(master,fg = 'black',width = 30,height = 2, text = '内江正式系统')
        self.title.grid(row = 0, column = 0, columnspan = 6)

        self.b2 = Button(master, text = '开始查询')
        self.b2.grid(row = 8,column = 2, columnspan = 3)
        self.b2.bind('<Button-1>',self.button_click2)
     
        self.inputText = Label(master)
        self.inputText["text"] = "输入案件编号:"
        self.inputText.grid(row=1, column=0)
        self.inputField = Entry(master)
        self.inputField["width"] = 50
        self.inputField.grid(row=1, column=2, columnspan=6)
  
    def button_click2(self,event):       
        caseId =  self.inputField.get()
        o = caseOperation()
        o.caseSelect(caseId)
        
if '__main__' == __name__:
    root = Tk()
    caseSelect = caseSelect()
    caseSelect.create_window(root)
    root.resizable(False, False)   
    root.geometry('300x100+10+10')    
    root.title('案件查询')      
    root.iconbitmap('redSaber.ico')
    root.mainloop()
    





